package com.xyh.transaction.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyh.transaction.common.Constant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 帐户
 *
 * @author xiao
 * @date 2023/11/12
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 2L;

    private Integer id;

    private String username;

    private String password;

    private Integer age;

    private Integer gender; // 0：女  1：男

    private String idCard;

    private String email;

    private Integer status; // 0：禁用 1：启用

    @JsonFormat(pattern = Constant.DATE_FORMAT_DEFAULT)
    private LocalDateTime createTime;

    private int isDelete; // 0：存在 1：删除
}
